from locals import *
import objects

class Hint(objects.StaticObject):
	graphic = "hint.png"
	_passable = True

	def __init__(self, map, position, text):
		super(Hint, self).__init__(map, position)
		
		self.text = text

	def save(self, variables):
		return "%s, \"%s\"" % (super(Hint, self).save(variables), self.text)

	def step(self, stepper):
		if stepper.__class__.__name__ == "Player":
			print self.text
